#include<stdio.h>

int main()
{
	int a[3][3]={1,2,3,4,5,6,7,8,9},b[3][3]={1,0,0,0,1,0,0,0,1},c[3][3]={0,0,0,0,0,0,0,0,0};
	int i,j,l;
	for(i=0;i<=2;i++)
	{
		for(j=0;j<=2;j++)
		{
			for(l=0;l<=2;l++)
			{
				c[i][j]+=a[i][l]*b[l][j];
			}
		}
	}
	for(i=0;i<=2;i++)
	{
		printf("%d ",c[0][i]);
	}
	printf("\n");
	for(i=0;i<=2;i++)
	{
		printf("%d ",c[1][i]);
	}
	printf("\n");
	for(i=0;i<=2;i++)
	{
		printf("%d ",c[2][i]);
	}
	printf("\n");
	return 0;
}
				
